

<div class="layui-form-item">
    <label class="layui-form-label">账号</label>
    <div class="layui-input-block">
        <input type="text" name="ai_name" disabled class="layui-input" value="<? echo $employee['name']?>">
        <div class="notice">无法修改</div>
    </div>
</div>







<?if($_SESSION['admin_term']=='1'){?>

    <div class="layui-form-item">
        <label class="layui-form-label">密码重置</label>
        <div class="layui-input-block">
            <input type="text" name="ai_admin_password"  autocomplete="off" class="layui-input" >
            <div class="notice">如不需要重置密码，请勿填写内容</div>
        </div>
    </div>



    <div class="layui-form-item">
        <label class="layui-form-label">权限</label>
        <div class="layui-input-block">
            <input type="radio" name="ai_admin_term" value="1" title="管理员"
                <? if($employee['admin_term']=="1"){echo "checked";} ?>
                >

            <input type="radio" name="ai_admin_term" value="0" title="编辑"
                <? if($employee['admin_term']=="0"){echo "checked";} ?>
                >

        </div>
    </div>
<?}?>






    <? if(in_array("admin",$quanxian)){?>
        <div class="layui-form-item">
            <label class="layui-form-label">系统权限</label>
            <div class="layui-input-block">

                <? $employee_quanxian=explode(",",$employee['quanxian']);?>

                <input type="checkbox" name="ai_quanxian[]" value="admin" title="管理员" <?if(in_array('admin',$employee_quanxian)){echo "checked";}?>>

                <?foreach ($plate as $k=>$v) {
                    if($v['status']=='public'){?>
                        <div>
                            <input type="checkbox" name="ai_quanxian[]" value="<?echo $k?>" title="<?echo $v['name']?>" <?if(in_array($k,$employee_quanxian)){echo "checked";}?>  >
                            ：
                            <?foreach ($v['permission'] as $k2=>$v2) {?>
                                <input type="checkbox" name="ai_quanxian[]" value="<?echo $v2?>" title="<?echo str_replace($v['name']."_","",$v2)?>" <?if(in_array($v2,$employee_quanxian)){echo "checked";}?>  >
                                <?;}?>

                        </div>
                    <?}?>
                <?}?>


            </div>
        </div>
    <?}?>

<li class="layui-form-item">
    <label class="layui-form-label">账户简介</label>
    <div class="layui-input-block">
        <textarea name="ai_introduce" class="layui-textarea" ><? echo $employee['introduce'] ?></textarea>
        <div class="notice">填写现正在登陆的账号描述</div>
    </div>
</li>


        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input type="radio" name="ai_status" value="正常" title="正常"
                    <? if($employee['status']=="正常"){echo "checked";} ?>
                >

                <input type="radio" name="ai_status" value="停用" title="停用"
                    <? if($employee['status']=="停用"){echo "checked";} ?>
                >

            </div>
        </div>







